package org.dao.impl;

import org.apache.ibatis.session.SqlSessionFactory;
import org.dao.TSysUserDao;
import org.entity.TSysUser;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class TSysUserDaoImpl extends SqlSessionDaoSupport implements TSysUserDao {

    @Autowired
    @Override
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    @Override
    public TSysUser queryById(Long id) {
        return null;
    }

    @Override
    public List<TSysUser> queryAllByLimit(int offset, int limit) {
        return null;
    }

    @Override
    public List<TSysUser> queryAll(TSysUser tSysUser) {
        return getSqlSession().getMapper(TSysUserDao.class).queryAll(tSysUser);
    }

    @Override
    public int insert(TSysUser tSysUser) {
        return 0;
    }

    @Override
    public int update(TSysUser tSysUser) {
        return 0;
    }

    @Override
    public int deleteById(Long id) {
        return 0;
    }
}
